"RM = Remainder"
By Tom Wood and Bob Fabris
ARCADIAN 1, no. 3 (Jan. 13, 1979): 18.


"RM = REMAINDER" is interesting.  Normally the TBASIC swallows the remainder
of a division and only tells you of the whole number part of the answer.  But
with the knowledge of RM, we can convert it to a decimal and print it, as:
         INPUT A
         INPUT B
         C = A [div] B
         D = RM x 1000 [div] B
         PRINT C, ".", D
This will give you an answer that is a bit disjointed, as "3.   421".  But
Chuck Thomka reminded me of the PRINT #A,B statement.  It bunches the printed
parts together (as "3.421") so they look normal.  Change the last command to
         PRINT #1,C,".",D
to get this effect.  There are limitations to the size of RM x 1000.


